﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CodeBuilder.DevTools
{
    public partial class ToolForm : Form
    {
        public ToolForm()
        {
            InitializeComponent();
        }

        private void ToolForm_Load(object sender, EventArgs e)
        {

        }

        private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.colorToolForm1.TimerEnable = false;
            if (tabControl1.SelectedIndex.Equals(3))
            {
                //颜色选取功能
                this.colorToolForm1.ColorDisplayInit();
                this.colorToolForm1.TimerEnable = true;
            }

        }

        private void ToolForm_KeyDown(object sender, KeyEventArgs e)
        {
            if (tabControl1.SelectedIndex.Equals(3))
            {
                this.colorToolForm1.colorForm_KeyDown(sender, e);
            }
        }
    }
}
